<template>
  <div class="itemlist">
    <div class="title-block box-flex middle">
      <div class="titles line-ellipsis">
        <span>{{cin.title}}</span
        ><span class="price-block1"
          ><span class="price">{{cin.price.n}}</span>
          <span class="q">{{cin.price.q}}</span></span
        >
      </div>
      <div class="location-block box-flex">
        <div class="flex line-ellipsis">
          {{cin.location}}
        </div>
      </div>
      <div class="flex"></div>
      <div class="label-block">
        <div class="endorse" :class="i.code" v-for="(i,index) in cin.services " :key="index">{{i.text}}</div>
       
      </div>
      <div class="discount-block">
        <div>
          <div class="discount-label normal card" v-for="(item,index) in cin.discount " :key="index+100"  >
            <img
              src="../assets/card.png"
              alt=""
            />
          <div class="discount-label-text" >{{item.text}}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
    props: {
    cin: Object,
  },
};
</script>

<style lang="less">
.itemlist{
    padding: 13px 15px 13px 0;
    margin-left: 15px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    color: #333;
     .inline-flex:not(.column).middle {
    align-items: center;
}
    .title-block {
    display: block;
    line-height: 1.5;
    .line-ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
    .titles {
        
  

    height: 23px;
    line-height: 23px;
    font-size: 16px;
    color: #000;
    .price-block1 {
    padding-top: 9px;
    padding-left: 3px;
    line-height: 1.5;
    .price {
    font-size: 18px;
    color: #f03d37;
}
        .q{
            margin-left: 3px;
            color: #f03d37;
        }
}
}
     
     
     .location-block {
         
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: flex;
.line-ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    /* white-space: nowrap; */
}
    .flex {
    display: block;
    flex: 1;
}

}
 .flex {
    display: flex;
    flex: 1;
}

.label-block {
    .allowRefund{
      color: #589daf;
      border: 1px solid #589daf;
      margin: 0 2px;

    }
    .endorse{
        color: #589daf;
    border: 1px solid #589daf;
 margin: 02px;
    }
    .vipTag{
       color: #f90;
    border: 1px solid #f90;
 margin: 0 3px;
    }
    .snack{
        color: #f90;
    border: 1px solid #f90;
 margin: 0 2px;
    }
    .hallType{
       color: #589daf;
      border: 1px solid #589daf;

    }
    
}
.label-block>div {
    position: relative;
    display: inline-block;
    padding: 0 3px;
    height: 15px;
    line-height: 15px;
    border-radius: 2px;
    font-size: 12px;
}

.discount-block {
    color: #999;
    margin-bottom: 4px;
    .discount-label {
        display: inline-flex;
    width: 255px;
    height: 14px;
    position: relative;
    top:3px;
    img{
        width: 15px;
        border: 0;
    }
.discount-label-text {
    display: inline-block;
    margin-left: 0;
    font-size: 12px;
}
}

}

}

}
</style>